<?php
class Modules_model extends Mymodel {
	
	public $table_name = "modules";
    function Modules_model()
    {
        parent::Mymodel();
    }
    
    function get_modules($id=NULL)
    {
		return $this->get_data($this->table_name, $id);
	}
		
	function insert_new_module($data)
	{
		//print_r($data);
		return $this->insert_new_record($this->table_name , $data);
	}
	
	function update_module_by_id($data, $id)
	{
		return $this->update_by_id($this->table_name, $data, $id);
	}
	
	function delete_module_by_id($id)
	{
		return $this->delete_by_id($this->table_name , $id);
	}
	
	
}

?>
